#pragma once

#include "RenderableObject.h"
#include "Vector.h"

class ObjReader
{
public:
	CVector ParseVertex(const char * buffer);
	CTriangleObject ParseTri(const char * buffer, const std::vector<CVector> & vertices);
	void Parse(std::istream & stream, std::vector<CTriangleObject*> & Tris);
	void LoadFile(std::string &FileName,std::vector<CRenderableObject*> &Objects);

};